﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartFramework.Core.Utils {
	public static class FS
	{
		private static readonly IFileSystem _current;
		static FS()
		{
			_current = new FileSystem();
		}

		public static IFileSystem Current { get { return _current; } }

		public static void CreateDirectory(string directory) {
			Current.CreateDirectory(directory);
		}

		public static void SetCurrentDirectory(string directory) {
			Current.SetCurrentDirectory(directory);
		}

		public static string GetCurrentDirectory() {
			return Current.GetCurrentDirectory();
		}

		public static string[] GetDirectories(string folder)
		{
			return Current.GetDirectories(folder);
		}

		public static bool DirectoryExists(string folder) {
			return Current.DirectoryExists(folder);
		}
	}
}
